import request from "../utils/request";

// 首页轮播图
export const getIndexSlideshow = (type) => request.get(`/index/indexSlideshow/${type}`)
// 首页菜单按钮
export const getIndexMenu = (type) => request.get(`/index/indexMenu/${type}`)
// 首页新闻公告
export const getNewsBulletin = () => request.get(`/index/indexMenu/newsBulletin`)
// 首页新闻攻略
export const getnewsGuide = (params) => request.post(`/index/indexMenu/newsGuide`,params)
// 首页新闻攻略详情
export const getnewsGuideById = (params) => request.post(`/index/indexMenu/newsGuideById`,params)
// 首页获取商品推荐数据
export const commodityRecommendation = () => request.get(`/index/thermalRecommendation/commodityRecommendation`)
// 首页获取住宿榜数据
export const hotels = () => request.get(`/index/recommend/hotels/data`)
// 首页用户浏览记录新增
export const browsingHistoryAdd = (params) => request.post(`/personalCenter/browsingHistory/add`,params)
// 首页热力推荐-景区推荐 -小程序
export const scenicAreaRecommendation = () => request.get(`/index/thermalRecommendation/scenicAreaRecommendation`)



